﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SanJ.FreeCare.Authorization.Impersonation
{
    [Serializable]
    public class ImpersonationCacheItem
    {
        public const string CacheName = "AppImpersonationCache";

        public Guid? ImpersonatorTenantId { get; set; }

        public Guid ImpersonatorUserId { get; set; }

        public Guid? TargetTenantId { get; set; }

        public Guid TargetUserId { get; set; }

        public bool IsBackToImpersonator { get; set; }

        public ImpersonationCacheItem()
        {

        }

        public ImpersonationCacheItem(Guid? targetTenantId, Guid targetUserId, bool isBackToImpersonator)
        {
            TargetTenantId = targetTenantId;
            TargetUserId = targetUserId;
            IsBackToImpersonator = isBackToImpersonator;
        }
    }
}
